package com.deft.design.combination.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 决策返回对象信息
 * @author Hide丶love
 * @date 2022/04/27
 **/
@Data
@NoArgsConstructor
public class EngineResult {

    /**
     * 执行结果
     */
    private boolean isSuccess;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 规则树ID
     */
    private Long treeId;

    /**
     * 果实节点ID
     */
    private Long nodeId;

    /**
     * 果实节点值
     */
    private String nodeValue;

    public EngineResult(String userId, Long treeId, Long nodeId, String nodeValue) {
        this.userId = userId;
        this.treeId = treeId;
        this.nodeId = nodeId;
        this.nodeValue = nodeValue;
    }
}
